package com.cn.kehong.domain;

import com.google.common.collect.ImmutableMap;

import java.util.Date;
import java.util.Map;

public class Role {
    private String id;

    private String roleType;

    private String rolePermission;

    private String roleName;

    private String describe;

    private Integer orderIndex;

    private String stopStatus;

    private String status;

    private Date createTime;

    private String rolePermissionCn;

    private Integer seq;

    public static final transient Map<String, String> STATUSMAP =
            ImmutableMap.of("0", "启动", "1", "停用");

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getRoleType() {
        return roleType;
    }

    public void setRoleType(String roleType) {
        this.roleType = roleType == null ? null : roleType.trim();
    }

    public String getRolePermission() {
        return rolePermission;
    }

    public void setRolePermission(String rolePermission) {
        this.rolePermission = rolePermission == null ? null : rolePermission.trim();
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName == null ? null : roleName.trim();
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe == null ? null : describe.trim();
    }

    public Integer getOrderIndex() {
        return orderIndex;
    }

    public void setOrderIndex(Integer orderIndex) {
        this.orderIndex = orderIndex;
    }

    public String getStopStatus() {
        return stopStatus;
    }

    public String getStopStatusCn() {
        return STATUSMAP.get(getStopStatus());
    }

    public void setStopStatus(String stopStatus) {
        this.stopStatus = stopStatus == null ? null : stopStatus.trim();
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status == null ? null : status.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRolePermissionCn() {
        return rolePermissionCn;
    }

    public void setRolePermissionCn(String rolePermissionCn) {
        this.rolePermissionCn = rolePermissionCn;
    }

    public Integer getSeq() {
        return seq;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

}
